package com.zbmsg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import com.zbmsg.utils.spring.SpringUtil;

@SpringBootApplication
@ComponentScan(basePackages = { "com.zbmsg" })
public class Application {
	public static void main(String[] args) throws Exception {
		SpringApplication.run(Application.class, args);
	}

	/*
	 * 加载SpringUtil,利用这个工具类来实现springboot普通类注入service
	 */
	@Bean
	public SpringUtil springUtil() {
		return new SpringUtil();
	}
}
